import Vue from 'vue';
import App from './App.vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router/index';
import VueRouter from 'vue-router';
import moment from 'moment';
import store from './store/index';

Vue.config.productionTip = false;

/* 在原型链上挂载 */
Vue.prototype.$moment = moment;

Vue.use(ElementUI);
Vue.use(VueRouter);
new Vue({
  render: (h) => h(App),
  store,
  router, 
  mounted() {
    console.log('store', this.$store);
   },
}).$mount('#app');
